package org.dei.perla.sys.device.fpc.intec.datastructure;

import org.dei.perla.utils.dataconverter.annotations.SimpleField;
import org.dei.perla.utils.dataconverter.annotations.StructInfo;
import org.dei.perla.utils.dataconverter.enums.Endianness;
import org.dei.perla.utils.dataconverter.enums.Sign;

@StructInfo(endianness = Endianness.BIG_ENDIAN, totalStructSize = 14)
public class MpptData {	

	@SimpleField(size = 8, sign = Sign.UNSIGNED)
	private long timestamp;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int panelVoltage;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int panelCurrent;
	
	@SimpleField(size = 2, sign = Sign.SIGNED)
	private int batteryOneVoltage;
	

	
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public int getPanelVoltage() {
		return panelVoltage;
	}
	public void setPanelVoltage(int panelVoltage) {
		this.panelVoltage = panelVoltage;
	}
	public int getPanelCurrent() {
		return panelCurrent;
	}
	public void setPanelCurrent(int panelCurrent) {
		this.panelCurrent = panelCurrent;
	}
	public int getBatteryOneVoltage() {
		return batteryOneVoltage;
	}
	public void setBatteryOneVoltage(int batteryOneVoltage) {
		this.batteryOneVoltage = batteryOneVoltage;
	}
	
}
